#include <iostream>
#include <algorithm>

using namespace std;
int main() {
    int n;
    scanf("%d",&n);
    int num[n];
    for (int i = 0; i < n; ++i) {
        scanf("%d",&num[i]);
    }
    sort(num,num+10);
    printf("%d",num[0]);
    return 0;
}
